﻿using PineLake.Drmwe.Lib.EnumText;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PineLake.Drmwe.Lib.ResultMsg
{
    /// <summary>
    /// 接口返回信息
    /// </summary>
    public class ApiResultMsg
    {
        public ApiResultMsg()
        {
            this.StatusCode = (int)ApiStatusCodeEnum.Success;
            this.Info = ApiStatusCodeEnum.Success.GetEnumText();
        }
        /// <summary>
        /// 状态码
        /// </summary>
        public int StatusCode { get; set; }

        /// <summary>
        /// 操作信息
        /// </summary>
        public string? Info { get; set; }

        /// <summary>
        /// 返回数据
        /// </summary>
        public object? Data { get; set; }
    }
}
